import { uniFetch } from './uni-fetch.js'

// 消息列表
export const list = (contentType, page, pageSize) => {
  if (!contentType) return
  return uniFetch.get('/driver/messages/page', { contentType, page, pageSize })
}

// 全部已读
export const allread = (contentType) => {
  return uniFetch.put(`/driver/messages/readAll/${contentType}`)
}
